package com.xiaoxing.zhinenghuacangku_liaocheng.mvp.contract;

import com.jess.arms.mvp.IModel;
import com.jess.arms.mvp.IView;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.model.entity.GetUserSpaceListForAutoStore;

import java.util.List;

import io.reactivex.Observable;


public interface LiaoCheng_ReturnLibraryContract {
    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
    interface View extends IView {
        void validateReturnInstoreSuccess(String validateReturnInstore);

        void setInstoreBufferReadyForAGVSuccess(String setInstoreBufferReadyForAGV);//入库 扫描入库缓冲位二维码

        void returnInstoreSuccess(String returnInstore);//退库

        void ReturnGetMaterialPlateSuccess(String returnGetMaterialPlate);//ReturnGetMaterialPlate

        void CheckCanReturnInstoreBufferSuccess(String checkCanReturnInstoreBuffer);//ReturnGetMaterialPlate

        void AddAgvTaskInstoreSuccess(String addAgvTaskInstore);

        void getUserSpaceListForAutoStoreSuccess(List<GetUserSpaceListForAutoStore> getUserSpaceListForAutoStoreList);//获取空闲仓位

    }

    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
    interface Model extends IModel {
        Observable<String> validateReturnInstore(String mid);

        Observable<String> setInstoreBufferReadyForAGV(String bufferId,String spid);

        Observable<String> returnInstore(String mid, String instoreBufferId, String uid, String num);

        Observable<String> ReturnGetMaterialPlate(String mid, String instoreBufferId, String uid);

        Observable<String> CheckCanReturnInstoreBuffer(String mid);

        Observable<String> AddAgvTaskInstore(String mid, String instoreBufferId, String spid, String num, String uid);

        Observable<String> getUserSpaceListForAutoStore(
                String user_id,
                String spname
        );


    }
}
